import { createRouter, createWebHashHistory } from "vue-router";

const routes = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/home"  
        },
        {
            path: "/home",
            component: () => import("../views/home/HomePage.vue"),
        },
        {
            path: "/order",
            component: () => import("../views/order/OrderPage.vue"),
        },
        {
            path: "/mine",
            component: () => import("../views/mine/MinePage.vue"),
        },
        {
            path: "/cart",
            component: () => import("../views/cart/CartPage.vue"),
        },
        {
            path: "/store",
            component: () => import("../views/store/indexPage.vue"),
        },
    ],
})

export default routes;